package edu.sctu.zhuyingzhi.month201505.day20150514.listTestOne;

/**
 * Created by user13 on 2015/5/13.
 */
public class Worker {
     private int age;
     private String name;
     private double salary;

    public Worker(String name,double salary,int age){
        this.age = age;
        this.name = name;
        this.salary = salary;
    }

    public int getAge(){
        return age;
    }

    public String getName(){
        return name;
    }

    public double getSalary(){
        return salary;
    }

    public void work(){
        System.out.println(name +"worker");
    }

}
